﻿@model LetLord.ViewModels.SearchForTenantViewModel

@using (Ajax.BeginForm("SearchForTenants", "Search", FormMethod.Post,
                        new AjaxOptions
                        {
                            InsertionMode = InsertionMode.Replace,
                            HttpMethod = "POST",
                            UpdateTargetId = "search-for-tenants-results"
                        }))
{
    @Html.ValidationSummary(true)
    @Html.AntiForgeryToken()
    <div class="row-fluid">
        <div class="span12">
            <div class="tenant-search-control">
                @Html.Bootstrap().ControlGroup().CheckBoxFor(x => x.WantsStudentIsSelected).HtmlAttributes(new { @class="checkboxsearch" })
                @Html.JQueryUI().SliderFor(x => x.WantsStudentWeighting).Min(1).Max(3).Label("Weighting: ").ContainerCssClass("slidersearch")
            </div>
            <div class="tenant-search-control">
                @Html.Bootstrap().ControlGroup().CheckBoxFor(x => x.WantsProfessionalIsSelected).HtmlAttributes(new { @class="checkboxsearch" })
                @Html.JQueryUI().SliderFor(x => x.WantsProfessionalWeighting).Min(1).Max(3).Label("Weighting: ")
            </div>
@*            <div class="tenant-search-control">
                @Html.Bootstrap().ControlGroup().CheckBoxFor(x => x.WantsReferenceIsSelected).HtmlAttributes(new { @class="checkboxsearch" })
                @Html.JQueryUI().SliderFor(x => x.WantsReferenceWeighting).Min(1).Max(3).Label("Weighting: ")
            </div>*@
            <div class="tenant-search-control">
                @Html.Bootstrap().ControlGroup().CheckBoxFor(x => x.AllowsRentAllowanceIsSelected).HtmlAttributes(new { @class="checkboxsearch" })
                @Html.JQueryUI().SliderFor(x => x.AllowsRentAllowanceWeighting).Min(1).Max(3).Label("Weighting: ")
            </div>
            <div class="tenant-search-control">
                @Html.Bootstrap().ControlGroup().CheckBoxFor(x => x.AllowsPetsIsSelected).HtmlAttributes(new { @class="checkboxsearch" })
                @Html.JQueryUI().SliderFor(x => x.WantsProfessionalWeighting).Min(1).Max(3).Label("Weighting: ")
            </div>
            <div class="tenant-search-control">
                @Html.Bootstrap().ControlGroup().CheckBoxFor(x => x.WantsGroupIsSelected).HtmlAttributes(new { @class="checkboxsearch" })
                @Html.JQueryUI().SliderFor(x => x.WantsGroupWeighting).Min(1).Max(3).Label("Weighting: ")
            </div>
            <div class="tenant-search-control">
                @Html.Bootstrap().ControlGroup().CheckBoxFor(x => x.AllowsChildrenIsSelected).HtmlAttributes(new { @class="checkboxsearch" })
                @Html.JQueryUI().SliderFor(x => x.AllowsChildrenWeighting).Min(1).Max(3).Label("Weighting: ")
            </div>
        </div>
        <div>
            <input type="submit" value="Search" class="btn btn-primary" />
        </div>
    </div>
}


